Method and apparatus for sensing multiple voltage values from a single terminal of a power converter controller

ABSTRACT

A controller for use in a power converter includes a switching control and a sensor. The switching control generates a first signal to control switching of a power switch between a first state and a second state. The sensor receives a second signal from a single terminal of the controller during at least a portion of the time that the power switch is in the first state and during at least a portion of the time that the power switch is in the second state. The second signal is representative of a line input voltage during at least the portion of time that the power switch is in the first state and is representative of an output voltage during at least the portion of time that the power switch is in the second state. The sensor is coupled to be responsive to the first signal.

REFERENCE TO PRIOR APPLICATION

This application is a continuation of U.S. Non-Provisional applicationSer. No. 13/777,438, filed Feb. 26, 2013, now pending, which is acontinuation of U.S. Non-Provisional application Ser. No. 13/279,157,filed Oct. 21, 2011, now issued as U.S. Pat. No. 8,406,013, which is acontinuation of U.S. Non-Provisional application Ser. No. 12,058,530,filed Mar. 28, 2008, now issued as U.S. Pat. No. 8,077,483 which claimsthe benefit of U.S. Provisional Application No. 60/922,133, filed Apr.6, 2007, entitled “METHOD AND APPARATUS FOR SENSING MULTIPLE VOLTAGEVALUES FROM A SINGLE TERMINAL OF A POWER CONVERTER CONTROLLER.” U.S.patent application Ser. Nos. 13/777,438 and 60/922,133, and U.S. Pat.Nos. 8,406,013 and 8,077,483 are hereby incorporated by reference.

BACKGROUND INFORMATION

1. Field of the Disclosure

The present invention relates generally to power converters, and morespecifically, the invention relates to sensing input and output voltagesof power converters.

2. Background

Many electrical devices such as cell phones, personal digital assistants(PDA's), laptops, etc. are powered by a source of relatively low-voltageDC power. Because power is generally delivered through a wall outlet ashigh-voltage AC power, a device, typically referred to as a powerconverter is required to transform the high-voltage AC power tolow-voltage DC power. The low-voltage DC power may be provided by thepower converter directly to the device or it may be used to charge arechargeable battery that, in turn, provides energy to the device, butwhich requires charging once stored energy is drained. Typically, thebattery is charged with a battery charger that includes a powerconverter that meets constant current and constant voltage requirementsrequired by the battery. In operation, a power converter may use acontroller to regulate output power delivered to an electrical device,such as a battery, that may be generally referred to as a load. Morespecifically, the controller may be coupled to a sensor that providesfeedback information of the output of the power converter in order toregulate power delivered to the load. The controller regulates power tothe load by controlling a power switch to turn on and off in response tothe feedback information from the sensor to transfer energy pulses tothe output from a source of input power such as a power line.

Power converter control circuits may be used for a multitude of purposesand applications. There is a demand for control circuit functionalitythat can provide all features demanded for the application whilereducing the number of components outside the integrated controlcircuit. This reduction in external component count enablesminiaturization of the power converter to improve portability, reducesthe number of design cycles required to finalize a power converterdesign and also improves reliability of the end product. Furthermore,reduced component count can offer energy efficiency improvements in theoperation of the power converter and can reduce the power convertercost. Some example additional features that improve on regulation anddetect additional fault conditions in the power converter rely onsensing an input line voltage. In some cases, sensing an input linevoltage may be necessary in order to meet customer requirements.However, known circuits that sense an input line voltage add componentsexternal to the controller. An integrated solution would eliminatediscrete components needed to sense the input line voltage, but in somecases integrating a circuit that senses an input line voltage may resultin the need for additional terminals, which may increase the size, costand complexity of the integrated controller.

BRIEF DESCRIPTION OF THE DRAWINGS

Non-limiting and non-exhaustive examples of the present invention aredescribed with reference to the following figures, wherein likereference numerals refer to like parts throughout the various viewsunless otherwise specified.

FIG. 1 is a schematic illustrating generally an example power converterincluding a controller in accordance with the teachings of the presentinvention.

FIG. 2 is a functional block diagram illustrating generally an examplecontroller in accordance with the teachings of the present invention.

FIG. 3 is a schematic illustrating an example sensor in accordance withthe teachings of the present invention.

FIG. 4 illustrates generally example voltage waveforms and clock signalsassociated with an example sensor in accordance with the teachings ofthe present invention.

FIG. 5 is a flow chart illustrating generally an example a method forsensing an output voltage and an input line voltage on the same terminalin accordance with the teachings of the present invention.

DETAILED DESCRIPTION

Examples related to sensing voltages in power converters are disclosed.In the following description, numerous specific details are set forth inorder to provide a thorough understanding of the present invention. Itwill be apparent, however, to one having ordinary skill in the art thatthe specific detail need not be employed to practice the presentinvention. Well-known methods related to the implementation have notbeen described in detail in order to avoid obscuring the presentinvention.

Reference throughout this specification to “one embodiment,” “anembodiment,” “one example” or “an example” means that a particularfeature, structure or characteristic described in connection with theembodiment is included in at least one embodiment or example of thepresent invention. Thus, the appearances of the phrases “in oneembodiment,” “in an embodiment,” “in one example” or “in an example” invarious places throughout this specification are not necessarily allreferring to the same embodiment. The particular features, structures orcharacteristics may be combined for example into any suitablecombinations and/or sub-combinations in one or more embodiments orexamples.

As will be discussed, example integrated controllers for powerconverters that include a sensing circuit that senses input line voltageand output voltage from the same terminal are disclosed in accordancewith the teachings of the present invention. Examples of the disclosedpower converters and methods may be used in a variety of applications inwhich the output voltage is regulated by a controller in response tosensed input line voltage and output voltage.

To illustrate, FIG. 1 is a schematic showing generally an example of apower converter 100, also referred to as a power supply, including acontroller 102 in accordance with the teachings of the presentinvention. In one example, controller 102 may be included in anintegrated circuit. As shown, the power supply 100 receives DC currentat input 104, which in the illustrated example is coupled to anunregulated input line voltage V_(LINE) 105. An energy transfer element116 galvanically isolates input 104 from output terminals 118, which inthe example corresponds with an output voltage V_(OUT) 120. With input104 galvanically isolated from output terminals 118 by energy transferelement 116, there is no DC current path to allow current to flow fromthe input side to the output side of the power converter 100. In oneexample, energy transfer element 116 includes an input winding 122 andan output winding 124. An “input winding” may also be referred to as a“primary winding” and an “output winding” may also be referred to as a“secondary winding.” As shown, a clamp circuit 126 is coupled to inputwinding 122 of energy transfer element 116 to limit the maximum voltageacross controller 102. In one example, the clamp circuit 126 may includea resistor 128, a capacitor 130, and a rectifier 131.

As shown in the depicted example, controller 102 includes power switch132 coupled between a first terminal 133 and second terminal 134 coupledto an input return 129. In one example, the input return 129 and anoutput return 149 may be coupled.

In one example, first terminal 133 may be referred to as a “drainterminal” and second terminal 134 may be referred to as a “sourceterminal.” Power switch 132 is coupled to control the transfer of energythrough the energy transfer element 116 from input terminals 104 to theoutput terminals 118 to regulate an output of power supply 100 byswitching the power switch 132 between an on state and an off state.More specifically, when power switch 132 is on, a switch currentI_(SWITCH) 135 flows through the input winding 122 and when power switch132 is off, switch current I_(SWITCH) 135 is substantially preventedfrom flowing through power switch 132. In one example, power switch 132is a transistor, such as for example a high voltage metal oxidesemiconductor field effect transistor (MOSFET). It is noted in theexample illustrated in FIG. 1, power switch 132 is included withincontroller 102. For instance, in one example, controller 102 is amonolithic integrated circuit including power switch 132. In anotherexample, however, power switch 132 may instead be a discrete externaldevice coupled to and controlled by controller 102 or may be a discreteswitch packaged with an integrated controller in a hybrid device. Inother various examples, controller 102 may include features to employany of a variety of control methods including, but not limited to,ON/OFF control, ON/OFF control with varying current limit levels, pulsewidth modulation (PWM), or the like.

As shown, the energy transfer element 116 further includes an auxiliarywinding 136 that provides a reflected voltage V_(REFLECT) 138, which maybe representative of input line voltage V_(LINE) 105 when switch currentI_(SWITCH) 135 is flowing through input winding, and representative ofoutput voltage V_(OUT) 120 when a secondary current I_(SECONDARY) 137 isflowing through output winding 124. In one example, reflected voltageV_(REFLECT) 138 may be representative of an input line voltage V_(LINE)105 during at least a portion of the time of when the power switch 132is on, and representative of output voltage V_(OUT) 120 during at leasta portion of the time when the power switch 132 is off. In operation,when the power switch 132 is on, switch current I_(SWITCH) 135 isenabled to flow through the input winding 122 allowing for the reflectedvoltage V_(REFLECT) 138 to represent a voltage that is proportional tothe input line voltage V_(LINE) 105. The reflected voltage V_(REFLECT)138 may be proportional to the input line voltage V_(LINE) 105 by thesame proportion of the number of turns in auxiliary winding 136 tonumber of turns in input winding 122. An example relationship thatexists between the turns ratio and voltage ratio is shown below:

$\begin{matrix}{\frac{V_{REFLECT}}{V_{LINE}} = \frac{N_{A}}{N_{I}}} & (1)\end{matrix}$

-   where N_(A) is the number of turns on auxiliary winding 136 and    N_(I) is the number of turns on input winding 122. When power switch    132 transitions from an on state to an off state, switch current    I_(SWITCH) 135 is substantially prevented from flowing through power    switch 132 and the energy stored in input winding 122 is transferred    to output winding 124 allowing the reflected voltage V_(REFLECT) 138    to represent a voltage that is proportional to the output voltage    V_(OUT) 120. The reflected voltage V_(REFLECT) 138 may be    proportional to the output voltage V_(OUT) 120 by the same    proportion of the number of turns in auxiliary winding 136 to the    number of turns in output winding 124. An example relationship that    may exist between the turns ratio and the voltage ratio is shown    below:

$\begin{matrix}{\frac{V_{REFLECT}}{V_{OUT} + V_{F}} = \frac{N_{A}}{N_{O}}} & (2)\end{matrix}$

-   where N_(A) is the number of turns on auxiliary winding 136, N_(O)    is the number of turns on output winding 124, and V_(F) is the    voltage across the rectifier 152 when it is forward biased. When    V_(F) is negligible with respect to V_(OUT), the expression may be    simplified to

$\begin{matrix}{\frac{V_{REFLECT}}{V_{OUT}} \approx \frac{N_{A}}{N_{O}}} & (3)\end{matrix}$

Continuing with the example shown in FIG. 1, auxiliary winding 136 iscoupled to a voltage divider that includes first and second resistors140 and 142 such that a feedback terminal 144 is coupled to a nodebetween first and second resistors 140 and 142. In one example, valuesfor first and second resistors 140 and 142 may be chosen based on thedesired output voltage V_(OUT) 120. A feedback signal 146 is received bycontroller 102 and is representative of the reflected input line voltagewhen power switch 132 is on, and representative of the reflected outputline voltage when power switch 132 is off. As shown, a bypass terminal148 is coupled to a bypass capacitor 150, which provides supply currentto the internal circuitry of controller 102 during operation. Inoperation, controller 102 produces pulsating currents in the rectifier152, which in the illustrated example includes a diode that is filteredby capacitor 154 to produce the substantially constant output voltageV_(OUT) 120.

FIG. 2 is a functional block diagram further illustrating examplecontroller 102 of FIG. 1 in accordance with the teachings of the presentinvention. As shown, a sensor 202 outputs a sample input line voltagesignal 204 and a sample output voltage signal 206 in response tofeedback signal 146. More specifically, when power switch 132 is on,feedback signal 146 provides forward information representative of inputline voltage V_(LINE) 105, and when power switch 132 is off feedbacksignal 146 provides feedback information representative of outputvoltage V_(OUT) 120. Accordingly, sensor 202 outputs sample input linevoltage signal 204 when the feedback signal 146 is representative of theinput line voltage V_(LINE) 105, and outputs sample output voltagesignal 206 when feedback signal 146 is representative of the outputvoltage V_(OUT) 120. As shown, a switching control block 208 outputs adrive signal 210 that switches the power switch 132 between an on stateand an off state. Drive signal 210 is also output to sensor 202 todetermine the timing of when sensor 202 senses the reflected voltageV_(REFLECT) 138 or when sensor 202 senses the input line voltageV_(LINE) 105.

Example functions that may optionally respond to the outputs of thesensor 202 will now be described. An output regulator 212 outputs anoutput regulation signal 214 in response to the sample output voltagesignal 206. More specifically, output regulator 212 employs a particularcontrol technique to regulate output voltage V_(OUT) 120 in response tothe sample output voltage signal. For example, a control technique mayinclude ON/OFF control, pulse width modulation, or the like.

As shown in the depicted example, an optional auto restart detector 216selectively outputs an auto restart signal 218 to indicate switchingcontrol block 208 to engage in an auto restart mode. More specifically,auto restart is a mode of operation entered by controller 102 during afault condition such as, but not limited to, output overload, outputshort circuit, an open loop condition or the like. For instance, in oneexample, an auto restart mode is engaged when output voltage V_(OUT) 120is below a certain threshold voltage for a certain time. When controller102 is operating in auto restart mode, the power supply 100 operates ata reduced output voltage and reduced average output current to avoiddamage from a fault condition. During the auto restart mode, switchingis unregulated for a duration that would be long enough to raise theoutput voltage V_(OUT) 120 above an auto-restart threshold if the loadwere within specifications, followed by a relatively long interval of noswitching if the output does not reach the threshold during the allowedduration of the switching. The auto restart mode repeats this pattern ofswitching followed by an interval of no switching without manualintervention until the output voltage V_(OUT) 120 reaches theauto-restart threshold.

As shown in the depicted example, an optional constant current regulator219 outputs a constant current signal 220 to switching control block 208in response to sampled output voltage signal 206. More specifically,when power converter 100 is in a current regulation mode, the switchingcontrol block 208 regulates output current at output terminals 118.

As shown, an optional power limiter 221 is also included and is coupledto receive sample input line voltage 204 and a current sense signal 223.Power limiter 221 outputs a power limit signal 222 to switching controlblock 208. In particular, the power limiter 221 limits input power tothe power supply 100 in response to the sample input line voltage signal204 and a current sense signal 223 from a current sensor 224. In oneexample, the current sense signal 223 is generated in response to asensing of switch current I_(SWITCH) 135 in power switch 132. Any of themany know ways to measure switch current I_(SWITCH) 135, such as forexample a current transformer, or the voltage across a discreteresistor, or the voltage across a transistor when the transistor isconducting, may be implemented with current sensor 224. In theillustrated example, current sensor 224 is coupled to power switch 132at a node between power switch 132 and source terminal 134. In anotherexample, it is appreciated that current sensor 224 may be coupled at anode between power switch 132 and drain terminal 133 in accordance withthe teachings of the present invention.

As shown in the example, an optional line under voltage detector 225 isalso coupled to receive sample input line voltage signal 204 and iscoupled to output a line under voltage signal 226 to switching controlblock 208. More specifically, the line under voltage detector 225determines when the line voltage V_(LINE) 105 is under a line voltagethreshold in response to sample input line voltage signal 204.

FIG. 3 is a schematic 300 illustrating an example of sensor 202 inaccordance with the teachings of the present invention. As shown,feedback terminal 144 is coupled to provide feedback signal 146 tosensor 202. As illustrated in FIG. 4, during at least a portion of whendrive signal 210 is low, which in one example represents an off statefor power switch 132, feedback voltage V_(FB) at feedback terminal 144is representative of an output voltage V_(OUT) 120. During at least aportion of when drive signal 210 is high, which in one examplerepresents an on state for power switch 132, feedback terminal isclamped to zero volts with respect to input return 129. In anotherexample, it is appreciated that drive signal 210 may be high torepresent an off state for power switch 132.

Continuing with the example of FIG. 3, schematic 300 illustrates asensor coupled to receive feedback signal 146 to generate a sampleoutput voltage signal 206 and a sample input line voltage signal 204. Aninternal voltage supply 302 is coupled to a first current source 303that supplies current to a buffer circuit 304 that includes matchedp-channel transistors T₁ 306 and T₂ 308. As used herein, a transistormay be an n-channel or p-channel transistor. N-channel and p-channeltransistors perform complementary or opposite functions, such that asignal that causes an n-channel transistor to turn on will cause ap-channel transistor to turn off. For analog signals, a signal thatcauses an n-channel transistor to conduct more current will cause ap-channel transistor to conduct less current. An n-channel transistorrequires a positive voltage between the gate and source for thetransistor to conduct current. A p-channel transistor requires anegative voltage between the gate and source for the transistor toconduct current. An n-channel transistor substantially prevents currentflow through the n-channel transistor when the positive voltage betweenthe gate and source of the n-channel transistor is less than thetransistor's threshold voltage. As the voltage between the gate andsource of the n-channel transistor becomes greater than the transistor'sthreshold voltage, more current is permitted to flow through then-channel transistor. Conversely, the p-channel transistor substantiallyprevents current flow through the p-channel transistor when the negativevoltage between the gate and source of the p-channel transistor is lessnegative (closer to zero) than the transistor's negative thresholdvoltage. As the negative voltage between the gate and source of thep-channel transistor becomes more negative than the transistor'snegative threshold voltage, more current is permitted to flow throughthe p-channel transistor.

A second current source 310 is coupled to sink current from transistorT₂ 308. In operation, the voltage at the gate of transistor T₁ 306 isequal to the voltage at feedback terminal 144 with respect to inputreturn 129. With the configuration of matched transistors T₁ 306 and T₂308 in the illustrated example, the voltage at the gate of transistor T₂308 is substantially equal to voltage at feedback terminal 144 withrespect to input return 129. As shown, an n-channel transistor T₃ 313 iscoupled between the gate of transistor T₂ 308 and a voltage terminal314, which corresponds to a sampled output voltage V_(SAMPLE) 315 withrespect to an input return 321.

In operation, sample output voltage signal 206 is representative ofsampled output voltage V_(SAMPLE) 315 with respect to input return 321.As shown, a capacitor 316 is coupled to voltage terminal 314 such thatwhen an output clock signal CLK_(OUT) 318 is high, transistor T₃ 313 ison and allows current to flow to and from capacitor 316 to readjustsampled output voltage V_(SAMPLE) 315 to match the voltage at feedbackterminal 144. When output clock signal CLK_(OUT) 318 is low, transistorT₃ 313 is ‘off’ and capacitor 316 is prevented from charging ordischarging. In another example, it is appreciated that transistor T₃313 could be designed to be on when CLK_(OUT) 318 is low and T₃ 313could be designed to be off when CLK_(OUT) 318 is high. The output clocksignal CLK_(OUT) 318 is derived from drive signal 210. As shown in FIG.4, output clock signal CLK_(OUT) 318 is a pulsed signal that pulsesafter a time t₁ after the falling edge of drive signal 210. In otherwords, output clock signal CLK_(OUT) 318 is a pulsed signal that pulsesafter a time t₁ after power switch 132 transitions from an on state toan off state.

Referring back to the example shown in FIG. 3, sampled output voltageV_(SAMPLE) 315 is adjusted to the voltage at feedback terminal 144 whileoutput clock signal CLK_(OUT) 318 is high. More specifically, the pulseof output clock signal CLK_(OUT) 318 is high for a duration of time thatallows capacitor 316 to charge or discharge to the voltage at feedbackterminal 144 with respect to input return 129. In the example, outputsample voltage V_(SAMPLE) 315 is adjusted after the time delay t₁, whichis during the time period wherein reflected voltage V_(REFLECT) 138 isrepresentative of output voltage V_(OUT) 120.

Referring back to the example sensor 202 in FIG. 3, the internal voltagesupply 302 is coupled to a third current source 330 that suppliescurrent to n-channel transistor T₄ 332. As shown, gate of transistor T₄332 is coupled to gate of n-channel transistor T₅ 334. A p-channeltransistor T₆ 336 is coupled between internal voltage supply 302 andtransistor T₅ 334. As shown in FIG. 4, when the reflected voltageV_(REFLECT) 138 is below zero, the feedback terminal with respect toinput return 129 is clamped to approximately zero volts and a negativeinternal current I_(INT) 338 representative of the input line voltageV_(LINE) 105 flows through from auxiliary winding 136 throughtransistors T₆ 336 and T₅ 334. In one example, the internal currentI_(INT) 338 may change in magnitude in response to the reflected voltageV_(REFLECT) 138.

As shown in the depicted example, a p-channel transistor 340 T₇ iscoupled between the gate of transistor T₆ 336 and the gate of atransistor T₈ 342. A capacitor 348 is coupled between the internalvoltage supply 302 and the gate of p-channel transistor T₈ 342. Asshown, an output of an inverter 344 is coupled to the gate of transistorT₇ 340. The input of the inverter 344 is coupled to receive an inputline clock signal CLK_(LINE) 346. As shown in FIG. 4, input line clocksignal CLK_(LINE) 346 is a pulsed signal that pulses after a time t₂after the leading edge of drive signal 210. In other words, input lineclock signal CLK_(LINE) 346 is a pulsed signal that pulses after a timet₂ after a power switch 132 transitions from an off state to an onstate.

Referring back to FIG. 3, when input line clock signal CLK_(LINE) 346 ishigh, transistor T₇ 340 is on and allows current to flow to and fromcapacitor 348 to adjust the voltage at the gate of transistor T₈ 342 tomatch the voltage at the gate of transistor T₆ 336. More specifically,the pulse of input line clock signal CLK_(LINE) 346 is high for aduration of time that allows capacitor 348 to charge or discharge to thevoltage at the gate of transistor T₆ 336 with respect to input return129. The voltage at the gate of transistor T₆ 336 is determined by themagnitude of internal current I_(INT) 338. When input line clock signalCLK_(LINE) 346 is low, transistor T₇ 340 is off and substantiallyprevents current from flowing to and from capacitor 348. In anotherexample, it is appreciated that transistor T₇ 340 could be designed tobe on when CLK_(LINE) 346 is low and T₇ 340 could be designed to be offwhen CLK_(LINE) 346 is high. Since voltage at the gate of transistor T₆336 is substantially equal to the voltage at the gate of transistor 342T₈, a sample current I_(SAMPLE) 350 proportional to internal currentI_(INT) 338 will flow through transistor 342 T₈ when transistor 340 T₇is on. More specifically, the proportionality of the current I_(INT) 338to current I_(SAMPLE) 350 is based on the proportionality of the sizingof transistor T₆ 336 to transistor T₈ 342 in the illustrated example. Inoperation, I_(SAMPLE) 350 may be converted into a voltage value by usinga resistive element such as, but not limited to, a resistor and isrepresentative of sample input line voltage signal 204.

Referring back to FIG. 4, the clock signal CLK_(LINE) 346 is high aftera time delay t₂ after the power switch 132 turns on. Since auxiliarywinding 136 may not necessarily reflect input voltage accuratelyimmediately after power switch 132 turns on, a time delay t₂ occursbefore I_(SAMPLE) 350 is adjusted proportionately to internal currentI_(INT) 338.

FIG. 5 is a flow chart 500 illustrating generally an example method forsensing an output voltage and a line voltage on the same terminal of anintegrated power supply controller in accordance with the teachings ofthe present invention. Processing begins at block 505, and in block 510,power switch 132 is turned on. In block 515, a time delay t₂ occursbefore sensing reflected input line voltage in block 520. In block 525,the sample input line voltage signal 204 is output. In block 530, thepower switch 132 is turned off. In block 535, a time delay t₁ occursbefore sensing reflected output line voltage in block 540. In block 545,the sample output voltage signal 206 is output and processing iscomplete in block 550.

The above description of illustrated examples of the present invention,including what is described in the Abstract, are not intended to beexhaustive or to be limitation to the precise forms disclosed. Whilespecific embodiments of, and examples for, the invention are describedherein for illustrative purposes, various equivalent modifications arepossible without departing from the broader spirit and scope of thepresent invention. Indeed, it is appreciated that the specific voltages,currents, frequencies, power range values, times, etc., are provided forexplanation purposes and that other values may also be employed in otherembodiments and examples in accordance with the teachings of the presentinvention.

These modifications can be made to examples of the invention in light ofthe above detailed description. The terms used in the following claimsshould not be construed to limit the invention to the specificembodiments disclosed in the specification and the claims. Rather, thescope is to be determined entirely by the following claims, which are tobe construed in accordance with established doctrines of claiminterpretation. The present specification and figures are accordingly tobe regarded as illustrative rather than restrictive.

What is claimed is:
 1. A controller for use in a power converter, thecontroller comprising: a switching control configured to generate afirst signal to be coupled to control switching of a power switch of thepower converter between a first state and a second state to regulate anoutput of the power converter; and a sensor coupled to receive a secondsignal from a single terminal of the controller during at least aportion of the time that the power switch is in the first state andduring at least a portion of the time that the power switch is in thesecond state, wherein the second signal is representative of a lineinput voltage of the power converter during at least the portion of timethat the power switch is in the first state, wherein the second signalis representative of an output voltage of the power converter during atleast the portion of time that the power switch is in the second state,and wherein the sensor is further coupled to be responsive to the firstsignal.
 2. The controller of claim 1, wherein the sensor is configuredto generate an input line voltage signal in response to the first signalindicating that the power switch has transitioned from the first stateto the second state, and to generate an output voltage signal inresponse to the first signal indicating that the power switch hastransitioned from the second state to the first state.
 3. The controllerof claim 2, wherein the sensor generates the output voltage signal bysampling the second signal during at least the portion of the time thepower switch is in the second state in response to the first signal. 4.The controller of claim 3, wherein the sensor is configured to samplethe second signal after a first time delay that begins with the firstsignal indicating that the power switch has transitioned from the firststate to the second state.
 5. The controller of claim 2, wherein thesensor generates the input line voltage signal by sampling the secondsignal during at least the portion of the time the power switch is inthe first state in response to the first signal.
 6. The controller ofclaim 5, wherein the sensor is configured to sample the second signalafter a second time delay that begins with the first signal indicatingthat the power switch has transitioned from the second state to thefirst state.
 7. The controller of claim 2, wherein the switching controlis configured to generate the first signal to control switching of thepower switch in response to the input line voltage signal and inresponse to the output voltage signal.
 8. The controller of claim 7,further comprising a power limiter coupled between the sensor and theswitching control, the power limiter coupled to output a power limitsignal to the switching control to limit an input power of the powerconverter in response to the sample input line voltage signal.
 9. Thecontroller of claim 7, further comprising an auto restart detectorcoupled between the sensor and the switching control, the auto restartdetector coupled to output an auto restart signal to the switchingcontrol to indicate to the switching control to enter an auto restartmode, wherein the auto restart signal is responsive to the outputvoltage signal.
 10. The controller of claim 7, further comprising a lineunder voltage detector coupled between the sensor and the switchingcontrol, the line under voltage detector coupled to output a line undervoltage signal to the switching control in response to the input linevoltage signal and a line voltage threshold.
 11. The controller of claim1, wherein the first state is an ON state of the power switch andwherein the second state is an OFF state of the power switch.
 12. Apower converter, comprising: an energy transfer element coupled betweenan input and an output of the power converter; a power switch coupled tothe energy transfer element; and a controller coupled to controlswitching of the switch to regulate the output of the power converter,wherein the controller includes: a switching control configured togenerate a first signal to control switching of the power switch betweena first state and a second state to regulate the output of the powerconverter; and a sensor coupled to receive a second signal from a singleterminal of the controller during at least a portion of the time thatthe power switch is in the first state and during at least a portion ofthe time that the power switch is in the second state, wherein thesecond signal is representative of a line input voltage of the powerconverter during at least the portion of time that the power switch isin the first state, wherein the second signal is representative of anoutput voltage of the power converter during at least the portion oftime that the power switch is in the second state, and wherein thesensor is further coupled to be responsive to the first signal.
 13. Thepower converter of claim 12, wherein the sensor is configured togenerate an input line voltage signal in response to the first signalindicating that the power switch has transitioned from the first stateto the second state, and to generate an output voltage signal inresponse to the first signal indicating that the power switch hastransitioned from the second state to the first state.
 14. The powerconverter of claim 13, wherein the sensor generates the output voltagesignal by sampling the second signal during at least the portion of thetime the power switch is in the second state in response to the firstsignal.
 15. The power converter of claim 14, wherein the sensor isconfigured to sample the second signal after a first time delay thatbegins with the first signal indicating that the power switch hastransitioned from the first state to the second state.
 16. The powerconverter of claim 13, wherein the sensor generates the input linevoltage signal by sampling the second signal during at least the portionof the time the power switch is in the first state in response to thefirst signal.
 17. The power converter of claim 16, wherein the sensor isconfigured to sample the second signal after a second time delay thatbegins with the first signal indicating that the power switch hastransitioned from the second state to the first state.
 18. The powerconverter of claim 13, wherein the switching control is configured togenerate the first signal to control switching of the power switch inresponse to the input line voltage signal and in response to the outputvoltage signal.
 19. The power converter of claim 18, further comprisinga power limiter coupled between the sensor and the switching control,the power limiter coupled to output a power limit signal to theswitching control to limit an input power of the power converter inresponse to the sample input line voltage signal.
 20. The powerconverter of claim 18, further comprising an auto restart detectorcoupled between the sensor and the switching control, the auto restartdetector coupled to output an auto restart signal to the switchingcontrol to indicate to the switching control to enter an auto restartmode, wherein the auto restart signal is responsive to the outputvoltage signal.
 21. The power converter of claim 18, further comprisinga line under voltage detector coupled between the sensor and theswitching control, the line under voltage detector coupled to output aline under voltage signal to the switching control in response to theinput line voltage signal and a line voltage threshold.
 22. The powerconverter of claim 12, wherein the first state is an ON state of thepower switch and wherein the second state is an OFF state of the powerswitch.
 23. A controller for use in a power converter, the controllercomprising: a switching control configured to generate a first signal tobe coupled to control switching of a power switch of the power converterbetween a first state and a second state to regulate an output of thepower converter; and a sensor coupled to sample a second signal receivedfrom a single terminal of the controller during at least a portion ofthe time that the power switch is in the first state and during at leasta portion of the time that the power switch is in the second state,wherein the second signal is representative of a line input voltage ofthe power converter during at least the portion of time that the powerswitch is in the first state, wherein the second signal isrepresentative of an output voltage of the power converter during atleast the portion of time that the power switch is in the second state,and wherein the sensor is further coupled to sample the second signal inresponse to the first signal.
 24. The controller of claim 23, whereinthe sensor is configured to generate an input line voltage signal inresponse to the first signal indicating that the power switch hastransitioned from the first state to the second state, and to generatean output voltage signal in response to the first signal indicating thatthe power switch has transitioned from the second state to the firststate.
 25. The controller of claim 24, wherein the sensor generates theoutput voltage signal by sampling the second signal during at least theportion of the time the power switch is in the second state in responseto the first signal.
 26. The controller of claim 25, wherein the sensoris configured to sample the second signal after a first time delay thatbegins with the first signal indicating that the power switch hastransitioned from the first state to the second state.
 27. Thecontroller of claim 24, wherein the sensor generates the input linevoltage signal by sampling the second signal during at least the portionof the time the power switch is in the first state in response to thefirst signal.
 28. The controller of claim 27, wherein the sensor isconfigured to sample the second signal after a second time delay thatbegins with the first signal indicating that the power switch hastransitioned from the second state to the first state.
 29. Thecontroller of claim 24, wherein the switching control is configured togenerate the first signal to control switching of the power switch inresponse to the input line voltage signal and in response to the outputvoltage signal.
 30. The controller of claim 29, further comprising apower limiter coupled between the sensor and the switching control, thepower limiter coupled to output a power limit signal to the switchingcontrol to limit an input power of the power converter in response tothe sample input line voltage signal.
 31. The controller of claim 29,further comprising an auto restart detector coupled between the sensorand the switching control, the auto restart detector coupled to outputan auto restart signal to the switching control to indicate to theswitching control to enter an auto restart mode, wherein the autorestart signal is responsive to the output voltage signal.
 32. Thecontroller of claim 29, further comprising a line under voltage detectorcoupled between the sensor and the switching control, the line undervoltage detector coupled to output a line under voltage signal to theswitching control in response to the input line voltage signal and aline voltage threshold.
 33. The controller of claim 23, wherein thefirst state is an ON state of the power switch and wherein the secondstate is an OFF state of the power switch.
 34. A power converter,comprising: an energy transfer element coupled between an input and anoutput of the power converter; a power switch coupled to the energytransfer element; and a controller coupled to control switching of theswitch to regulate the output of the power converter, wherein thecontroller includes: a switching control configured to generate a firstsignal to control switching of the power switch between a first stateand a second state to regulate the output of the power converter; and asensor coupled to sample a second signal received from a single terminalof the controller during at least a portion of the time that the powerswitch is in the first state and during at least a portion of the timethat the power switch is in the second state, wherein the second signalis representative of a line input voltage of the power converter duringat least the portion of time that the power switch is in the firststate, wherein the second signal is representative of an output voltageof the power converter during at least the portion of time that thepower switch is in the second state, and wherein the sensor is furthercoupled to sample the second signal in response to the first signal. 35.The power converter of claim 34, wherein the sensor is configured togenerate an input line voltage signal in response to the first signalindicating that the power switch has transitioned from the first stateto the second state, and to generate an output voltage signal inresponse to the first signal indicating that the power switch hastransitioned from the second state to the first state.
 36. The powerconverter of claim 35, wherein the sensor generates the output voltagesignal by sampling the second signal during at least the portion of thetime the power switch is in the second state in response to the firstsignal.
 37. The power converter of claim 36, wherein the sensor isconfigured to sample the second signal after a first time delay thatbegins with the first signal indicating that the power switch hastransitioned from the first state to the second state.
 38. The powerconverter of claim 35, wherein the sensor generates the input linevoltage signal by sampling the second signal during at least the portionof the time the power switch is in the first state in response to thefirst signal.
 39. The power converter of claim 38, wherein the sensor isconfigured to sample the second signal after a second time delay thatbegins with the first signal indicating that the power switch hastransitioned from the second state to the first state.
 40. The powerconverter of claim 35, wherein the switching control is configured togenerate the first signal to control switching of the power switch inresponse to the input line voltage signal and in response to the outputvoltage signal.
 41. The power converter of claim 40, further comprisinga power limiter coupled between the sensor and the switching control,the power limiter coupled to output a power limit signal to theswitching control to limit an input power of the power converter inresponse to the sample input line voltage signal.
 42. The powerconverter of claim 40, further comprising an auto restart detectorcoupled between the sensor and the switching control, the auto restartdetector coupled to output an auto restart signal to the switchingcontrol to indicate to the switching control to enter an auto restartmode, wherein the auto restart signal is responsive to the outputvoltage signal.
 43. The power converter of claim 40, further comprisinga line under voltage detector coupled between the sensor and theswitching control, the line under voltage detector coupled to output aline under voltage signal to the switching control in response to theinput line voltage signal and a line voltage threshold.
 44. The powerconverter of claim 34, wherein the first state is an ON state of thepower switch and wherein the second state is an OFF state of the powerswitch.